import { HIDE_TRANSFER, SET_TRANSFER, SHOW_TRANSFER } from '../constant';

const initValue = false;

export default function transferVisible (prev = initValue, action) {
  const {
    type,
    data
  } = action;
  switch (type) {
  case SET_TRANSFER:
    return data
  case SHOW_TRANSFER:
    return true
  case HIDE_TRANSFER:
    return false
  default:
    return prev;
  }
}
